package com.daidai.app;

import com.daidai.UserDao;
import com.daidai.config.SpringConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App1 {
    public static void main(String[] args) {

        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);

        UserDao userDao = context.getBean(UserDao.class);
        userDao.selectUser();

    }
}
